package com.lebang.mapper;

import com.lebang.domain.MemberAdStageRecord;
import com.lebang.example.MemberAdStageRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;


@Mapper
public interface MemberAdStageRecordMapper {
    long countByExample(MemberAdStageRecordExample example);

    int deleteByExample(MemberAdStageRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MemberAdStageRecord record);

    int insertSelective(MemberAdStageRecord record);

    List<MemberAdStageRecord> selectByExample(MemberAdStageRecordExample example);

    MemberAdStageRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MemberAdStageRecord record, @Param("example") MemberAdStageRecordExample example);

    int updateByExample(@Param("record") MemberAdStageRecord record, @Param("example") MemberAdStageRecordExample example);

    int updateByPrimaryKeySelective(MemberAdStageRecord record);

    int updateByPrimaryKey(MemberAdStageRecord record);

    MemberAdStageRecord selectByMemberIdAndCount(@Param("memberId") String memberId, @Param("count") int i, @Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

}